<?php

namespace app_supplier\models;

use Yii;
use yii\db\ActiveRecord;
/**
 * This is the model class for table "dealer_purchasing_material".
 *
 * @property integer $id
 * @property integer $d_m_id
 * @property integer $dealer_id
 * @property integer $user_id
 * @property integer $state
 * @property integer $dpd_id
 */
class DealerPurchasingMaterial extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dealer_purchasing_material';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['d_m_id', 'dealer_id', 'user_id', 'state', 'dpd_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'd_m_id' => 'D M ID',
            'dealer_id' => 'Dealer ID',
            'user_id' => 'User ID',
            'state' => 'State',
            'dpd_id' => 'Dpd ID',
        ];
    }
}
